<?php
namespace Core;

require_once __Dir__ . '/../../simpletest/autorun.php';

class TestOfDemandNewMember extends \UnitTestCase 
{
	/**
	* Check a correct add new user
	*
	* @reference
	*
	* @requirement
	* @requirement
	*/
    function testCorrectDemandNewMember() 
	{
		$services = new CoreService();
		$result = $services->demandNewMember("Jean", "Delaporte", "jdelaporte@gmail.com", "test", "je test le message");
		
		$this->assertFalse($result->isFailed);
		$this->assertTrue(isset($result->response));
    }
	
	/**
	* Check an invalid add new users by email already exist
	*/
    function testInvalidDemandNewMember() 
	{

    }
}
?>